package com.aptech.fpt.c0810g.newspj.beans;

import com.aptech.fpt.c0810g.newspj.dataaccess.CatalogyAction;
import com.aptech.fpt.c0810g.newspj.entity.Catalogy;
import java.util.ArrayList;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author zang
 */
@ManagedBean
@RequestScoped
public final class BeginRequest {

    private ArrayList<Catalogy> cataList;

    public ArrayList<Catalogy> getCataList() {
        return cataList;
    }

    /**
     * Thiet lap danh sach catalogy
     */
    public void setCataList(ArrayList<Catalogy> cataList) {
        this.cataList = cataList;
    }

    /** Creates a new instance of BeginRequest */
    public BeginRequest() {
        getCatalogyList();
    }

    public void getCatalogyList() {
        CatalogyAction catalogy = new CatalogyAction();
        this.cataList = catalogy.getCatalogyList();
    }
}
